<?php
include "connectStoreDB.php";

$prod=$_GET["prod"];

$sql="DELETE FROM products WHERE product_id=$prod;";

mysqli_query($conn, $sql);
echo "$prod deleted!";

//close connection
mysqli_close($conn);

//redirect back to admin page
header("location:admin.php");
?>